Skip to content

mpt: Export PersistedVersion - #84

Closed
mhutchinson wants to merge 1 commit into
FiloSottile:mainfrom
mhutchinson:b83-persistedAPI
Closed

mpt: Export PersistedVersion#84
mhutchinson wants to merge 1 commit into
FiloSottile:mainfrom
mhutchinson:b83-persistedAPI

Conversation

@mhutchinson

Copy link
Copy Markdown
Contributor

This resolves #83.

@rsc

rsc commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

I don't understand why PersistedVersion differs meaningfully from Version, nor why you can't use Version to discard old entries in a write-ahead log.

@mhutchinson

Copy link
Copy Markdown
Contributor Author

I was very convinced that I needed this, and I can no longer see why I believed it. I think I wasn't interpreting the exact response from Version() correctly, nor considering a proper strategy of when to use Sync(). My newer design avoids the failure modes I was falling into beforehand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mpt: PersistedVersion API

2 participants